package com.xidian.zhiancloud.controller.ypp.processmanage;



import com.xidian.zhiancloud.dto.ResultDTO;
import com.xidian.zhiancloud.enums.GeneralResponseEnums;
import com.xidian.zhiancloud.service.ypp.processmanage.HiddenDangerInvestigationGovernmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

//隐患排查治理
@RestController
@RequestMapping("/hiddendangerinvestigationgovernment")
public class HiddenDangerInvestigationGovernmentController {
    @Autowired
    private HiddenDangerInvestigationGovernmentService hiddenDangerInvestigationGovernmentService;

    //查所有
    @GetMapping("/getById")
    public ResultDTO getById(@RequestParam("classify") String classify) {
        return ResultDTO.successOf(hiddenDangerInvestigationGovernmentService.getById(classify), GeneralResponseEnums.SUCCESS);
    }

    //编辑
}
